 /**
  * 待办列表
  */
var rolessort,rolessm,grid=null;
window.onresize = function(){ 
		if(grid !=null)
		{
	        grid.setHeight(0); 
	        grid.setHeight($(window).height()-7); 
		}
	     
};
function initroleslist(){
	var colModel = new Ext.grid.ColumnModel([
		{header:'标题',dataIndex:'biaoti',menuDisabled : true},
		{header:'主送',dataIndex:'zhusong',menuDisabled : true},
		{header:'抄送',dataIndex:'chaosong',menuDisabled : true},
		{header:'操作',dataIndex:'operate',menuDisabled : true},
		{header:'id',dataIndex:'id',hidden:true}
	]);
	var state = Ext.get('state').getValue(); 
	var url = Ext.get('basePath').getValue()+"tjsinfo/tjsoa/dangweifawen/shenpi.do?method=daiban&state="+state;
	rolessort = new Ext.data.JsonStore({
		url:url,
		autoLoad:true,
		fields:['biaoti','zhusong','chaosong','operate','id']
	});
	 grid = new Ext.grid.GridPanel({
		title:'待办',
		cm:colModel,
		renderTo:'topic-grid',
		store:rolessort,
		loadMask:true,
		height:$(window).height()-7,
		viewConfig:{
			forceFit:true
		}
	});
}